﻿using Architecture.Domain;
using Architecture.Repository.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Repository.Impl
{
    /// <summary>
    /// 省仓储实现
    /// </summary>
    public class ProvinceRepository : BaseRepository<Province>, IProvinceRepository
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="context"> 数据库上下文 </param>
        public ProvinceRepository(EFCoreContext context) : base(context)
        {

        }

        /// <summary>
        /// 获取省份列表
        /// </summary>
        /// <returns>省份列表</returns>
        public async Task<List<Province>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }

    }
}
